package com.abcgroup.hyppo.jdbc;

import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.SQLException;

public class SimpleConnectionProvider implements IConnectionProvider {

    private String jdbcString;

    private String userName;

    private String password;

    public SimpleConnectionProvider(String jdbcString, String userName, String password) {
        this.jdbcString = jdbcString;
        this.userName = userName;
        this.password = password;
    }

    public Connection getConnection() throws SQLException {
        return DriverManager.getConnection(jdbcString, userName, password);
    }
}
